package com.lili.model.operate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("li_distribution_cash")
public class DistributionCash implements Serializable {
    private static final long SerialVersionUID = 1L;
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    Long id;

    String createBy;

    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime createTime;

    @TableLogic(value = "false", delval = "true")
    Byte deleteFlag;

    String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime updateTime;

    String distributionCashStatus;
    String distributionId;  //分销员id
    String distributionName; //分销员名称
    LocalDateTime payTime;  //支付时间
    Double price;  //分销佣金
    String sn;  //分销佣金编号
}
